<template>
    <view class="notify-view" :style="{
        marginTop: top + 'px',
        backgroundColor: bgcolor,
        color: color
    }">
        <div class="title">
            {{ title }}：
        </div>
        <div class="content">
            {{ content }}
        </div>
        <div class="more"></div>
    </view>
</template>
<script lang="ts" setup>
defineProps({
    title: {
        type: String
    },
    content: {
        type: String
    },
    bgcolor: {
        type: String
    },
    color: {
        type: String
    },
    top: {
        type: Number
    }
});
</script>
<style lang="scss" scoped>
.notify-view {
    display: flex;
    align-items: center;
    border-radius: 5px;
    font-size: 14px;
    margin: 0 10px;
    height: 50px;

    &>.title {
        padding-left: 20px;
        font-weight: 800;
    }

    &>.content {
        flex-grow: 1;
        padding-left: 10px;
    }

    &>.more {
        width: 30px;
        height: 30px;
        background-image: url("../../images/more.png");
        background-repeat: no-repeat;
        background-size: 60% auto;
        background-position: center center;
    }
}
</style>